package jianzhiOffer;
//剑指 Offer 17. 打印从1到最大的n位数
public class Num17_printNumbers {
    public int[] printNumbers(int n) {
        int end = (int) Math.pow(10,n)-1;
        int []ans = new int[end];
        for (int i = 0; i < end; i++) {
            ans[i] = i+1;
        }
        return ans;
    }
}
